]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Don't ellipsize forecast times and temps
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 20 Nov 2019 22:15:55 +0000 (23:15 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2019 00:13:08 +0000 (01:13 +0100)
While those should be concise enough to fit, they may not where
temperatures drop into double-digit negatives. It seems better
to accept some awkward horizontal scrolling in that case than
shorten relevant information.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1926

js/ui/dateMenu.js

index 2f7a95f448dd90392d3115d683f7849f81185dc4..af0984697a7735b6ea8213c6bb3eb464c092f5b8 100644 (file)
@@ -2,7 +2,7 @@
 /* exported DateMenuButton */
 
 const { Clutter, Gio, GLib, GnomeDesktop,
-        GObject, GWeather, Shell, St } = imports.gi;
+        GObject, GWeather, Pango, Shell, St } = imports.gi;
 
 const Util = imports.misc.util;
 const Main = imports.ui.main;
@@ -366,6 +366,9 @@ class WeatherSection extends St.Button {
                 x_align: Clutter.ActorAlign.CENTER,
             });
 
+            temp.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+            time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+
             layout.attach(icon, col, 0, 1, 1);
             layout.attach(temp, col, 1, 1, 1);
             layout.attach(time, col, 2, 1, 1);